package com.dissertation.pojo;

import com.dissertation.model.CategoryLeaf;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.List;

public class CategoryTreeVO {

    @Indexed( unique = true )
    @NotEmpty( message = "资源名称 不能为空" )
    private String uniqueName;

    private List<CategoryLeaf> categoryLeaves;

    private String categoryTreeName;

    private List<String> role;

    public String getUniqueName() {
        return uniqueName;
    }

    public void setUniqueName(String uniqueName) {
        this.uniqueName = uniqueName;
    }

    public List<CategoryLeaf> getCategoryLeaves() {
        return categoryLeaves;
    }

    public void setCategoryLeaves(List<CategoryLeaf> categoryLeaves) {
        this.categoryLeaves = categoryLeaves;
    }

    public String getCategoryTreeName() {
        return categoryTreeName;
    }

    public void setCategoryTreeName(String categoryTreeName) {
        this.categoryTreeName = categoryTreeName;
    }

    public List<String> getRole() {
        return role;
    }

    public void setRole(List<String> role) {
        this.role = role;
    }
}
